#include "Log.hpp"
//#include "1.ThreadPool.hpp"
#include"ThreadPool.hpp"
#include"Task.hpp"
#include <memory>

using namespace LogModule;
using namespace ThreadPoolModule;

int main()
{
    Enable_Console_Log_Strategy();

    //ThreadPool<int> *tp = new ThreadPool<int>();

    //tp->Start();
    //sleep(100);

    int cnt = 10;
    while(cnt)
    {
        sleep(1);
        ThreadPool<task_t>::GetInstance()->Enqueue(Download);
        cnt--;
    }

    ThreadPool<task_t>::GetInstance()->Stop();
    ThreadPool<task_t>::GetInstance()->Join();

    return 0;
}